package com.scau.phradmin.business.home.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @author yuzhiyi
 * @date 2018/8/6 9:58
 */
@Controller
public class HomeController {

	@RequestMapping("/home")
	public String home(ModelMap map, HttpSession session){
		System.out.println(session.getId());

		System.out.println(session.getAttribute("username"));
		map.addAttribute("view","manager/home/home");
		return "manager/common/admin";
	}

}
